<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <h1>差值表达式</h1>
    <h3>{{ msg }}</h3>
    <h3>{{ count }}</h3>
    <h1>v-model</h1>
    <div v-html="temhtml"></div>
    <input type="text" v-model="msg">
    <input type="text" v-model="count">
    <input type="button" value="v-on" v-on:click="alert">
  </div>
  <script src="./vue/watcher.js"></script>
  <script src="./vue/dep.js"></script>
  <script src="./vue/compiler.js"></script>
  <script src="./vue/observer.js"></script>
  <script src="./vue/vue.js"></script>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {
        msg: 'hello',
        temhtml: '<h1>差值表达式</h1>',
        count: 20
      },
      methods:{
        alert (){
          alert(123)
        }
      }
    })
  </script>
</body>
</html>